package controllers

import (
	"BeegoWeb/models"

	"github.com/astaxie/beego"
)

type LoginControllers struct {
	beego.Controller
}

func (c *LoginController) Get() {
	c.Data["website"] = "https://www.baidu.com"
	c.Data["isDisplay"] = false
	c.Data["content1"] = "content1"
	c.Data["content2"] = "content2"
	users := models.ReadAllUser()

	c.Data["users"] = users
	c.Data["len"] = len(users)
	c.TplName = "login.tpl"
}
